// 项目包使用 ~

{
    // 0
    if([@"PPCurePP_setMobileInfoMoInfo" isEqualToString:@"standardUserDefaults"]) {
        NSString *PPCurePP_Login_Type = [[NSUserDefaults standardUserDefaults] valueForKey:KPPCurePP_Key_Login_Type];
        if([PPCurePP_Login_Type isEqualToString:KPPCurePP_Key_Login_Type_Emial]) {
            NSString *PPCurePP_email = [[NSUserDefaults standardUserDefaults] valueForKey: KPPCurePP_Key_Login_Email_Email_Str];
            NSString *PPCurePP_password =[[NSUserDefaults standardUserDefaults] valueForKey:KPPCurePP_Key_Login_Email_Password_Str];
            if(PPCurePP_email.length > 0 && PPCurePP_password.length > 0) {
                [PPCurePP_AppManager PPCurePP_showLoading];
                [PPCurePP_UserModel PPCurePP_LoginInWithEmial:PPCurePP_email andPassWord:PPCurePP_password andSuccessComplete:^(PPCurePP_UserModel * _Nonnull PPCurePP_user) {
                    [[NSUserDefaults standardUserDefaults] setValue:KPPCurePP_Key_Login_Type_Emial forKey:KPPCurePP_Key_Login_Type];
                    [[NSUserDefaults standardUserDefaults] setValue:PPCurePP_email forKey:KPPCurePP_Key_Login_Email_Email_Str];
                    [[NSUserDefaults standardUserDefaults] setValue:PPCurePP_password forKey:KPPCurePP_Key_Login_Email_Password_Str];
                    [PPCurePP_AppManager PPCurePP_hideLoading];
                    [PPCurePP_AppManager PPCurePP_showTabbarVC];
                } andFailComplete:^(int PPCurePP_error, NSString * _Nonnull PPCurePP_msg) {
                    [PPCurePP_AppManager PPCurePP_hideLoading];
                    [PPCurePP_AppManager PPCurePP_showLoginVC];
                }];
            } else {
                [PPCurePP_AppManager PPCurePP_showLoginVC];
            }
        } else if ([PPCurePP_Login_Type isEqualToString:KPPCurePP_Key_Login_Type_Apple]) {
            NSString *PPCurePP_account = [[NSUserDefaults standardUserDefaults] valueForKey: KPPCurePP_Key_Login_Apple_Email_Str];
            NSString *PPCurePP_password = [[NSUserDefaults standardUserDefaults] valueForKey:KPPCurePP_Key_Login_Apple_Pass_Str];
            if(PPCurePP_account.length > 0 && PPCurePP_password.length > 0) {
                [PPCurePP_AppManager PPCurePP_showLoading];
                [PPCurePP_UserModel PPCurePP_apple_LoginInWithAccount:PPCurePP_account andPassWord:PPCurePP_password andSuccessComplete:^(PPCurePP_UserModel * _Nonnull PPCurePP_user) {
                    [[NSUserDefaults standardUserDefaults] setValue:KPPCurePP_Key_Login_Type_Apple forKey:KPPCurePP_Key_Login_Type];
                    [[NSUserDefaults standardUserDefaults] setValue:PPCurePP_account forKey:KPPCurePP_Key_Login_Apple_Email_Str];
                    [[NSUserDefaults standardUserDefaults] setValue:PPCurePP_password forKey:KPPCurePP_Key_Login_Apple_Pass_Str];
                    [PPCurePP_AppManager PPCurePP_hideLoading];
                    [PPCurePP_AppManager PPCurePP_showTabbarVC];
                } andFailComplete:^(int PPCurePP_error, NSString * _Nonnull PPCurePP_msg) {
                    [PPCurePP_AppManager PPCurePP_hideLoading];
                    [PPCurePP_AppManager PPCurePP_showLoginVC];
                }];
            } else {
                [PPCurePP_AppManager PPCurePP_showLoginVC];
            }
        } else {
            [PPCurePP_AppManager PPCurePP_showLoginVC];
        }
    }
}


{
    // 1
    if([@"PPCurePP_WeakSelf" isEqualToString:@"PPCurePP_Label"]) {
        PPCurePP_WeakSelf(self);

        PPCurePP_Label *PPCurePP_lab_tip = [[PPCurePP_Label alloc] init];
        PPCurePP_lab_tip.font = [UIFont PPCurePP_FontSize:21 fontEnum:PPCurePP_Font_Bold];
        PPCurePP_lab_tip.textColor = [UIColor PPCurePP_colorWithARGBString:@"#181629"];
        PPCurePP_lab_tip.text = [@"PPCurePP message tip ：Sign up ：Contact the developer" PPCurePP_stringByRemove];
        [PPCurePP_lab_tip mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo([PPCurePP_AppManager PPCurePP_HeightRatio:121]);
            make.leading.mas_equalTo(24);
            make.height.mas_equalTo(28);
        }];
        
        // Email
        PPCurePP_InputTextFView *PPCurePP_view_email = [[PPCurePP_InputTextFView alloc] init];
        PPCurePP_view_email.PPCurePP_lab_title.text = [@"PPCurePP message tip ：Email ：Contact the developer" PPCurePP_stringByRemove];
        PPCurePP_view_email.PPCurePP_textF_content.attributedPlaceholder =[[NSAttributedString alloc] initWithString:[@"PPCurePP message tip ：Email ：Contact the developer" PPCurePP_stringByRemove] attributes:@{
            NSForegroundColorAttributeName:[UIColor PPCurePP_colorWithARGBString:@"#98A2B3" alpha:1],
            NSFontAttributeName: [UIFont PPCurePP_FontSize:14 fontEnum:PPCurePP_Font_SemiBold],
        }];
        [PPCurePP_view_email mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(PPCurePP_lab_tip.mas_bottom).offset(24);
            make.leading.mas_equalTo(24);
            make.trailing.mas_equalTo(-24);
        }];
        
        // Password
        PPCurePP_InputTextFView *PPCurePP_view_password = [[PPCurePP_InputTextFView alloc] init];
        PPCurePP_view_password.PPCurePP_lab_title.text = [@"PPCurePP message tip ：Password ：Contact the developer" PPCurePP_stringByRemove];
        PPCurePP_view_password.PPCurePP_textF_content.secureTextEntry = true;
        PPCurePP_view_password.PPCurePP_textF_content.attributedPlaceholder =[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:[@"PPCurePP message tip ：Password ：Contact the developer" PPCurePP_stringByRemove],123,156] attributes:@{
            NSForegroundColorAttributeName:[UIColor PPCurePP_colorWithARGBString:@"#98A2B3" alpha:1],
            NSFontAttributeName: [UIFont PPCurePP_FontSize:14 fontEnum:PPCurePP_Font_SemiBold],
        }];
        [PPCurePP_view_password mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(PPCurePP_view_email.mas_bottom).offset(20);
            make.leading.mas_equalTo(PPCurePP_view_email.mas_leading);
            make.trailing.mas_equalTo(PPCurePP_view_email.mas_trailing);
        }];
        
        // nick name
        PPCurePP_InputTextFView *PPCurePP_view_name = [[PPCurePP_InputTextFView alloc] init];
        PPCurePP_view_name.PPCurePP_lab_title.text = [@"PPCurePP message tip ：Nickname ：Contact the developer" PPCurePP_stringByRemove];
        PPCurePP_view_name.PPCurePP_textF_content.attributedPlaceholder =[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:[@"PPCurePP message tip ：Nickname (%d-%d characters) ：Contact the developer" PPCurePP_stringByRemove],1,34] attributes:@{
            NSForegroundColorAttributeName:[UIColor PPCurePP_colorWithARGBString:@"#98A2B3" alpha:1],
            NSFontAttributeName: [UIFont PPCurePP_FontSize:14 fontEnum:PPCurePP_Font_SemiBold],
        }];
        [PPCurePP_view_name mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(PPCurePP_view_password.mas_bottom).offset(20);
            make.leading.mas_equalTo(PPCurePP_view_email.mas_leading);
            make.trailing.mas_equalTo(PPCurePP_view_email.mas_trailing);
        }];
        
    }
}




{
    // 2
    if([@"NSMutableDictionary" isEqualToString:@"PPRequestSerializerJSON"]) {
        NSString *PPCurePP_URL = @"NSMutableDictionary";
        NSDictionary *PPCurePP_parameter = @{
            @"NSMutableDictionary":@"PPCurePP_Request"
        };
        NSMutableDictionary *PPCurePP_parDic = [[NSMutableDictionary alloc] initWithDictionary:PPCurePP_parameter];
        NSString *PPCurePP_baseUrl = [NSString PPCurePP_DecryptString:@"joinUrlWithbaseUrl"];
        NSString *PPCurePP_pathUrl = [NSString PPCurePP_DecryptString:PPCurePP_URL];
        NSString *PPCurePP_pathAll = [NSString stringWithFormat:@"%@%@",PPCurePP_baseUrl,PPCurePP_pathUrl];
        [PPNetworkHelper setRequestSerializer:PPRequestSerializerJSON];
        [PPNetworkHelper setResponseSerializer:PPResponseSerializerJSON];
        [PPNetworkHelper setValue:[PPCurePP_AppManager PPCurePP_getAppUUID] forHTTPHeaderField:[@"PPCurePP message tip ：X-Request-ID ：Contact the developer" PPCurePP_stringByRemove]];
        [PPNetworkHelper POST:PPCurePP_pathAll parameters:PPCurePP_parDic success:^(id responseObject) {
            
        } failure:^(NSError *error) {

        }];
    }
}


{
    // 3
    if([@"PPCurePP_EmptyView" isEqualToString:@"PPCurePP_ColView"]) {
        // 空数据
        PPCurePP_EmptyView *PPCurePP_emptyView = [[PPCurePP_EmptyView alloc] init];
        PPCurePP_emptyView.hidden = true;
        [PPCurePP_emptyView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.trailing.left.bottom.mas_equalTo(0);
        }];
        
        UICollectionViewFlowLayout *PPCurePP_flowLayout = [[UICollectionViewFlowLayout alloc] init];
        PPCurePP_flowLayout.minimumLineSpacing = 0;
        PPCurePP_flowLayout.minimumInteritemSpacing = 0;
        PPCurePP_flowLayout.itemSize = CGSizeMake([PPCurePP_AppManager PPCurePP_Screen_Width], [PPCurePP_AppManager PPCurePP_Screen_Height]);
        
        PPCurePP_ColView *PPCurePP_colView = [[PPCurePP_ColView alloc]initWithFrame:CGRectMake(10, 10, 1000, 1000) collectionViewLayout:PPCurePP_flowLayout];
        PPCurePP_colView.backgroundColor = [UIColor clearColor];
        PPCurePP_colView.pagingEnabled = true;
        [PPCurePP_colView registerClass:NSClassFromString(@"PPCurePP_HomeCell") forCellWithReuseIdentifier:@"PPCurePP_HomeCell"];
        [PPCurePP_colView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.trailing.left.bottom.mas_equalTo(0);
        }];
    }
}


{
    // 4
    if([@"PPCurePP_btn_up" isEqualToString:@"PPCurePP_btn_cancle"]) {
        PPCurePP_Label *PPCurePP_lab_name = [[PPCurePP_Label alloc] init];
        PPCurePP_lab_name.text = [@"PPCurePP message tip ：Reminder ：Contact the developer" PPCurePP_stringByRemove];
        PPCurePP_lab_name.font = [UIFont PPCurePP_FontSize:18 fontEnum:PPCurePP_Font_SemiBold];
        PPCurePP_lab_name.textColor = [UIColor PPCurePP_colorWithARGBString:@"#181629"];
        [PPCurePP_lab_name mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(0);
            make.top.mas_equalTo(24);
        }];

        
        // 撑开距离的
        PPCurePP_Label *PPCurePP_labView = [[PPCurePP_Label alloc] init];
        PPCurePP_labView.backgroundColor = [UIColor clearColor];
        PPCurePP_labView.numberOfLines = 0;
        [PPCurePP_labView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.mas_equalTo(34);
            make.trailing.mas_equalTo(-34);
            make.top.mas_equalTo(PPCurePP_lab_name.mas_bottom).offset(8);
            make.height.mas_greaterThanOrEqualTo(40);
        }];
        
        PPCurePP_Button *PPCurePP_btn_up = [PPCurePP_Button buttonWithType:UIButtonTypeCustom];
        [PPCurePP_btn_up mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(PPCurePP_labView.mas_bottom).offset(24);
            make.centerX.mas_equalTo(0);
            make.width.mas_equalTo(183);
            make.height.mas_equalTo(48);
        }];
        PPCurePP_btn_up.backgroundColor = [UIColor PPCurePP_colorWithARGBString:@"#F93F95"];
        PPCurePP_btn_up.layer.cornerRadius = 16;
        PPCurePP_btn_up.titleLabel.font = [UIFont PPCurePP_FontSize:16 fontEnum:PPCurePP_Font_SemiBold];
        [PPCurePP_btn_up setTitle:[@"PPCurePP message tip ：Confirm ：Contact the developer" PPCurePP_stringByRemove] forState:UIControlStateNormal];
        [PPCurePP_btn_up setTitleColor:[UIColor PPCurePP_colorWithARGBString:@"#FFFFFF"] forState:UIControlStateNormal];
        [PPCurePP_btn_up setTitle:[@"PPCurePP message tip ：Confirm ：Contact the developer" PPCurePP_stringByRemove] forState:UIControlStateSelected];
        [PPCurePP_btn_up setTitleColor:[UIColor PPCurePP_colorWithARGBString:@"#FFFFFF"] forState:UIControlStateSelected];
        [PPCurePP_btn_up PPCurePP_AddClickHandle:^{

        }];
               
        // 取消
        PPCurePP_Button *PPCurePP_btn_cancle = [PPCurePP_Button buttonWithType:UIButtonTypeCustom];
        [PPCurePP_btn_cancle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(PPCurePP_btn_up.mas_bottom).offset(14);
            make.centerX.mas_equalTo(0);
            make.width.mas_equalTo(PPCurePP_btn_up.mas_width);
            make.height.mas_equalTo(20);
            make.bottom.mas_equalTo(-20);
        }];
        PPCurePP_btn_cancle.titleLabel.font = [UIFont PPCurePP_FontSize:16 fontEnum:PPCurePP_Font_SemiBold];
        [PPCurePP_btn_cancle setTitle:[@"PPCurePP message tip ：Cancel ：Contact the developer" PPCurePP_stringByRemove] forState:UIControlStateNormal];
        [PPCurePP_btn_cancle setTitleColor:[UIColor PPCurePP_colorWithARGBString:@"#98A2B3"] forState:UIControlStateNormal];
        [PPCurePP_btn_cancle setTitle:[@"PPCurePP message tip ：Cancel ：Contact the developer" PPCurePP_stringByRemove] forState:UIControlStateSelected];
        [PPCurePP_btn_cancle setTitleColor:[UIColor PPCurePP_colorWithARGBString:@"#98A2B3"] forState:UIControlStateSelected];
        [PPCurePP_btn_cancle PPCurePP_AddClickHandle:^{
            
        }];
    }
}


{
    // 5
    if([@"PPCurePP_View" isEqualToString:@"PPCurePP_lab"]) {
        PPCurePP_View *PPCurePP_view = [[PPCurePP_View alloc] init];
        PPCurePP_view.backgroundColor = [UIColor redColor];
        PPCurePP_view.layer.cornerRadius = 16;
        [PPCurePP_view mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(54);
        }];
        
        PPCurePP_Label *PPCurePP_lab = [[PPCurePP_Label alloc] init];
        PPCurePP_lab.font = [UIFont PPCurePP_FontSize:16 fontEnum:PPCurePP_Font_SemiBold];
        PPCurePP_lab.textColor = [UIColor PPCurePP_colorWithARGBString:@"#FFFFFF" alpha:1];
        [PPCurePP_view addSubview:PPCurePP_lab];
        [PPCurePP_lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.centerY.mas_equalTo(0);
        }];
        
        PPCurePP_Label *PPCurePP_lab_2 = [[PPCurePP_Label alloc] init];
        PPCurePP_lab_2.font = [UIFont PPCurePP_FontSize:16 fontEnum:PPCurePP_Font_SemiBold];
        PPCurePP_lab_2.textColor = [UIColor PPCurePP_colorWithARGBString:@"#FFFFFF" alpha:1];
        [PPCurePP_view addSubview:PPCurePP_lab_2];
        [PPCurePP_lab_2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.centerY.mas_equalTo(0);
        }];
        
        PPCurePP_Label *PPCurePP_lab_3 = [[PPCurePP_Label alloc] init];
        PPCurePP_lab_3.font = [UIFont PPCurePP_FontSize:16 fontEnum:PPCurePP_Font_SemiBold];
        PPCurePP_lab_3.textColor = [UIColor PPCurePP_colorWithARGBString:@"#FFFFFF" alpha:1];
        [PPCurePP_view addSubview:PPCurePP_lab_3];
        [PPCurePP_lab_3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.centerY.mas_equalTo(0);
        }];
    }
}
